if(NOT QT_NO_CREATE_TARGETS)
    set(__qt_qml_target @QT_CMAKE_EXPORT_NAMESPACE@::Qml)
    get_property(__qt_qml_aliased_target TARGET ${__qt_qml_target} PROPERTY ALIASED_TARGET)
    if(__qt_qml_aliased_target)
        set(__qt_qml_target "${__qt_qml_aliased_target}")
    endif()
    if("@BUILD_SHARED_LIBS@")
        set_property(TARGET ${__qt_qml_target} PROPERTY
            INTERFACE_QT_EXECUTABLE_FINALIZERS
            _qt_internal_generate_deploy_qml_imports_script
        )
    else()
        set_property(TARGET ${__qt_qml_target} PROPERTY
            INTERFACE_QT_EXECUTABLE_FINALIZERS
            qt@PROJECT_VERSION_MAJOR@_import_qml_plugins
        )
    endif()
    unset(__qt_qml_target)
    unset(__qt_qml_aliased_target)
endif()
